// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Router from 'vue-router'
import {
  scrollTo
} from '../src/functions/common'
import {
  post,
  get,
  requests
} from '@/functions/ajax'
import {
  delay
} from './fun'

import Loading from './components/loading'
import 'material-design-icons/iconfont/material-icons.css'
import 'animate.css'
import './sass/index.scss'

if (window.localStorage) {
  window.localStorage.test = '测试成功'
}

Vue.config.productionTip = false
Vue.use(Loading)
Vue.use(Router)
// Vue.prototype.$loading = Loading
Vue.prototype.$scrollTo = scrollTo
Vue.prototype.$get = get
Vue.prototype.$post = post
Vue.prototype.$request = requests
Vue.prototype.$delay = delay

/* eslint-disable no-new */
new Vue({
  data() {
    return {
      config: '',
      point: '',
      area: ''
    }
  },
  async created() {},
  el: '#app',
  router,
  template: '<App/>',
  components: {
    App
  }
})
